namespace = xeno_lv_compat

# 3_66: wires the two LV-synergy bonus modifiers to their breeding civics.
# Also re-checks on yearly pulse via same event id fired from civic-change contexts is out of scope -> TODO.
country_event = {
	id = xeno_lv_compat.100
	hide_window = yes
	is_triggered_only = yes
	immediate = {
		# flag-race guard: the LV detector (xeno_lv_compat.1) may not have run yet this pulse
		if = {
			limit = { NOT = { has_global_flag = lustful_void_mod_loaded } }
			country_event = { id = xeno_lv_compat.100 days = 30 }
		}
		if = {
			limit = {
				has_civic = civic_xenomorph_matriarchs_hunger
				NOT = { has_modifier = xenomorph_matriarchs_hunger_lv_bonus }
			}
			add_modifier = { modifier = xenomorph_matriarchs_hunger_lv_bonus days = -1 }
		}
		if = {
			limit = {
				has_civic = civic_xenomorph_patriarchs_dominion
				NOT = { has_modifier = xenomorph_patriarchs_dominion_lv_bonus }
			}
			add_modifier = { modifier = xenomorph_patriarchs_dominion_lv_bonus days = -1 }
		}
	}
}
